<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>订单信息</title>
<%@ include file="../../header_inc.jsp"%>
<script type="text/javascript">
	//所有的子窗体都需要有一个save函数，当点击弹出窗体的保存按钮时所进行的操作
	function btnSave_click() {
			var fun_ret;
			var vals = $('#formModule').serialize();
			var url = '${saveUrl}';
			$.ajax({
				async : false,
				type : "POST",
				url : url,
				data : vals,
				cache : false,
				dataType : 'json',
				success : function(data) {
					if (data.success != 0) {
						//top.Ext.Msg.alert("提示",data.msg);
						Ext.Msg.alert("提示", data.msg);
					} else {
						fun_ret = true;
					}
				}
			});
	return fun_ret;
	}
</script>
</head>
<body>
	<div style="padding: 1px" align="center">
		<form id="formModule" method="post">
			<table border="0">
				
				<tr height="30">
					<td>商品编号：</td>
					<td><input id="COMMODITY_ID" maxlength="10" 
						class="easyui-validatebox textbox" type="text"
						name="commodityIds" data-options="required:true"
						style="width: 180px;height: 25px;text-align:center"></input></td>
				</tr>
				<tr height="30">
					<td>流水号：</td>
					<td><input id="SERIAL_NUMBER" maxlength="10" 
						class="easyui-validatebox textbox" type="text" 
						name="serialNumber" data-options="required:true"
						style="width: 180px;height: 25px;text-align:center"></input></td>
				</tr>
				<tr height="30">
					<td>订单数量：</td>
					<td><input id="ORDER_NUMBER" maxlength="20" 
						class="easyui-validatebox textbox" type="text"
						name="orderNumber" data-options="required:true"
						style="width: 180px;height: 25px;text-align:center"></input></td>
				</tr>
				<tr height="30">
					<td>支付价格：</td>
					<td><input id="PAY_PRICE" maxlength="11"
						class="easyui-validatebox textbox" type="text"
						name="payPrice"  data-options="required:true"
						style="width: 180px;height: 25px;text-align:center" value="${model.payPrice }"></input></td>
				</tr>
				<tr height="30">
					<td>支付状态：</td>
					<td><select id="payStatus" name="payStatus">
							<option value="1" <c:if test="${model.payStatus==1 }">selected</c:if>>已支付</option>
							<option value="2" <c:if test="${model.payStatus==2 }">selected</c:if>>未支付</option>
					</select></td>
				</tr>
				
				<tr height="30">
					<td>支付方式：</td>
					<td><select id="PAY_WAY" name="payWay">
							<option value="5" <c:if test="${model.payWay==5 }">selected</c:if>>微信支付</option>
							<option value="6" <c:if test="${model.payWay==6 }">selected</c:if>>货到付款</option>
					</select></td>
				</tr>
				<tr height="30">
					<td>支付人：</td>
					<td><input id="USER_ID" maxlength="10" 
						class="easyui-validatebox textbox" type="text" 
						name="custId" data-options="required:true"
						style="width: 180px;height: 25px;text-align:center" value="${model.userId }"></input></td>
				</tr>
				<tr height="30">
					<td>状态：</td>
					<td><select id="sendStatus" name="sendStatus">
							<option value="1" <c:if test="${model.payStatus==1 }">selected</c:if>>下单</option>
							<option value="2" <c:if test="${model.payStatus==2 }">selected</c:if>>确认</option>
							<option value="3" <c:if test="${model.payStatus==3 }">selected</c:if>>送到</option>
					</select></td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>